import pandas as pd
from pandas.plotting import register_matplotlib_converters
import numpy as np
import matplotlib.pyplot as plt

# filename="hot-dog-places.csv"
filename='hot-dog-contest-winners.csv'
reader = pd.read_csv(filename)

# reader = pd.read_csv('d:\\py\\data\\hot-dog-contest-winners.csv')
xa=reader['Year']
ya=reader['Dogs eaten']
plt.bar(xa, ya, alpha=0.5, width=0.3, color='yellow', edgecolor='red', lw=3)

plt.ylabel('Dogs eaten', fontsize=10)
plt.xlabel('Year', fontsize=10)
plt.tick_params(axis='both', labelsize=15)
plt.title('1980-2010美国热狗大胃王比赛柱形图',family ='kaiti',size=20, color ='y',loc='center') 
#plt.savefig("d:\\py\\1980-2010美国热狗大胃王比赛柱形图")
plt.show()